package com.lz.cwcc.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.sql.DataSource;

/**
 * @author : jingo
 * @version V1.0
 * @Project: cwcc_web
 * @Package com.lz.cwcc.config
 * @Description: TODO
 * @date Date : 2024年01月18日 19:04
 */
@Configuration
public class MyConfig implements WebMvcConfigurer {
    @Bean
    @ConfigurationProperties("spring.datasource")
    public DataSource druidDataSorce(){
        return new DruidDataSource();
    }
}
